<template>
	<view class="agreement-container">
		<rich-text :nodes="getAgreementContent()"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				agreementContent: ''
			}
		},
		onLoad() {
			this.getAgreementContent()
		},
		methods: {
			getAgreementContent() {
        return this.$store.getters.globalConfig.order_agreement || ''
			}
		}
	}
</script>

<style lang="scss">
.agreement-container {
	padding: 30rpx;
	background: #fff;
	min-height: 100vh;
}
</style> 